package com.core.Comprimento;

import com.core.Comprimento.ComprimentoBase;

public class Quilometro extends ComprimentoBase {
	
	public Quilometro(double valueTobeconverted){
		this.valueToBeConverted = valueTobeconverted;
	}
	
	@Override
	public double ToMetro(){
		return this.valueToBeConverted*1000;
	}
	
	@Override
	public double ToCentimetro(){
	 return this.valueToBeConverted*100000;
	}

	@Override
	public double ToMilimetro(){
	 return this.valueToBeConverted*1000000;
	}
	
	@Override
	public double ToPolegada(){
	 return this.valueToBeConverted*39370.0787;
	}
	
	@Override
	public double ToJarda(){
	 return this.valueToBeConverted*1093.6133;
	}

	@Override
	public double ToPe(){
	 return this.valueToBeConverted*3280.8399;
	}

}

